package com.bhkj.pdjhbgnewproject.core.viewmodel;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

public class WindowStatusModel extends ViewModel {
    private MutableLiveData<String> mPersonInfoLiveData = new MutableLiveData<>();

    public void setWindowStatus(String widowStatus) {
        if (mPersonInfoLiveData == null) {
            mPersonInfoLiveData = new MutableLiveData<>();
        }
        mPersonInfoLiveData.setValue(widowStatus);
    }

    public LiveData<String> getWindowStatusLiveData() {
        return mPersonInfoLiveData;
    }
}
